// MyMessageBox.cpp : implementation file
//

#include "stdafx.h"
#include "ECGWorkStation.h"
#include "MyMessageBox.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyMessageBox dialog


CMyMessageBox::CMyMessageBox(CWnd* pParent /*=NULL*/)
	: CDialog(CMyMessageBox::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMyMessageBox)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CMyMessageBox::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMyMessageBox)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMyMessageBox, CDialog)
	//{{AFX_MSG_MAP(CMyMessageBox)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyMessageBox message handlers

BOOL CMyMessageBox::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	GetDlgItem(IDC_STATIC_MESSAGE)->SetWindowText(m_szMessage);
	this->SetWindowText(m_szCaption);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}


void CMyMessageBox::SetCaption(CString cs)
{
	m_szCaption = cs;
    
}

void CMyMessageBox::SetMessage(CString cs)
{
	m_szMessage = cs;
    
}